]> dgit.raspbian.org Git - pandas.git/commitdiff
ignore expected DeprecationWarning
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Wed, 16 Sep 2026 19:30:23 +0000 (20:30 +0100)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Wed, 16 Sep 2026 19:30:23 +0000 (20:30 +0100)
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name ignore_bitwiseinversion_deprecation.patch

pandas/tests/computation/test_eval.py

index 859cbd30cfeadb29add9cabd770be0d6bd67d2d1..e9f7016b2e703297e62f5fee43aae5268ec331a3 100644 (file)
@@ -564,7 +564,7 @@ class TestEval:
     def test_scalar_unary(self, engine, parser):
         msg = "bad operand type for unary ~: 'float'"
         warn = None
-        if PY312 and not (engine == "numexpr" and parser == "pandas"):
+        if PY312:
             warn = DeprecationWarning
         with pytest.raises(TypeError, match=msg):
             pd.eval("~1.0", engine=engine, parser=parser)